<#include "/macro_.ftl">
INSERT
INTO ${entityMapper.tableName}
(<${r"#"}assign prefixName = true>
<#list entityMapper.fieldMapperMap?values as fieldMapper>
<${r"#"}if (insert_${fieldMapper.code}??) && (insert_${fieldMapper.code}_value??)>
${r"${prefixName?string('  ', ', ')}"}"${fieldMapper.columnName}"
<${r"#"}assign prefixName = false>
</${r"#"}if>
</#list>)
VALUES
(<${r"#"}assign prefixName = true>
<#list entityMapper.fieldMapperMap?values as fieldMapper>
<${r"#"}if (insert_${fieldMapper.code}??) && (insert_${fieldMapper.code}_value??)>
${r"${prefixName?string('  ', ', ')}"}:insert_${fieldMapper.code}_value
<${r"#"}assign prefixName = false>
</${r"#"}if>
</#list>)